Skip to content

fix: prevent env var leaks into WASM output #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged

Conversation

bradyjoslin
Copy link
Contributor

Uses command.env_clear() prior to spawning plugin compilation process to prevent environment variables from being embedded in the generated WASM binary.

Discovered by evaluating the .wat version of the wasm file, and verified the positive effect after the change.

@nilslice
Copy link
Member

Oh, great catch. Thank you @bradyjoslin!

Copy link
Contributor

@zshipko zshipko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zshipko zshipko merged commit 36a02ff into extism:main Apr 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants